package com.bzkj.web.controller.wms;

import com.bzkj.basicinfo.domain.wms.WmsQaHistoryEntity;
import com.bzkj.basicinfo.service.wms.WmsQaHistoryService;
import com.bzkj.common.core.controller.BaseController;
import com.bzkj.common.core.page.TableDataInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Date 2025/01/06 13:21:13
 * @description 商品状态记录表
 */
@Api(tags = "质检记录")
@RestController
@RequestMapping("wms/qaHistory")
public class WmsQaHistoryController extends BaseController {
    @Autowired
    private WmsQaHistoryService wmsQaHistoryService;

    /**
     * 库存操作日志查询
     *
     * @param entity
     * @return
     */
    @ApiOperation("查询接口")
    @PreAuthorize("@ss.hasPermi('organize:audit:query')")
    @GetMapping("findQaHistoryList")
    public TableDataInfo findQaHistoryList(WmsQaHistoryEntity entity) {
        startPage();
        return getDataTable(wmsQaHistoryService.findQaHistoryList(entity));
    }
}
